home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / postgres / appgen-0.2-a / appgen-0 / AppGEN / apps / cis.def < prev    next >
Encoding:
Text File  |  1996-07-10  |  3.0 KB  |  122 lines

  1. #######################################################
  2. # Sample Application Configuration File               #
  3. #######################################################
  4.  
  5. # Postgres95 specific variables; choice of:
  6. # PGHOST, PGOPTIONS, PGPORT, PGTTY, PGDATABASE, PGREALM.
  7. # See the Postgres manual for details, but you will need to set 
  8. # PGDIR the Postgres95 home directory,
  9. # PGHOST the machine on which Postgres is running and PGDATABASE the
  10. # database containing your database files.
  11.  
  12. PGDIR=/usr/local/postgres95
  13. PGHOST=arthur
  14. PGDATABASE=root
  15.  
  16. # HTTPD specific stuff; HTTPD-DIR is the httpd home directory,
  17. # CGI-URL is the URL of the cgi-bin directory where
  18. # the generated application scripts will be placed. DOC-URL is a document
  19. # directory where plain HTML files can be placed.
  20.  
  21. HTTPD-DIR=/usr/local/httpd
  22. CGI-URL=http://arthur/apps
  23. DOC-URL=http://arthur/docs
  24.  
  25. # Data structure details, TABLE-NAME defines the name of the database class,
  26. # SCREEN-TITLE defines the title on screen, SUMMARY-LIST defines which fields
  27. # are listed on the search summary and FIELDS: is an SQL type definition of 
  28. # the datafile attributes. * denotes primary key and may include several
  29. # attributes. $=attribute FROM class - denotes a foreign key with relationship.
  30. # Terminate each table definition with an END-TABLE clause.
  31.  
  32.  
  33. TABLE-NAME=subjective
  34. SCREEN-TITLE=Subjective Costcodes
  35. SUMMARY-LIST=costcode, description
  36. FIELDS:
  37.     costcode char(7) *
  38.     description char(45)
  39.     sub_type int
  40. END-TABLE
  41.  
  42. TABLE-NAME=supplier
  43. SCREEN-TITLE=Supplier Details
  44. SUMMARY-LIST=ref, name
  45. FIELDS:
  46.     ref char(8) *
  47.     name char(45)
  48.     addr1 char(45)
  49.     addr2 char(30)
  50.     addr3 char(30)
  51.     addr4 char(30)
  52.     tel char(15)
  53.     fax char(15)
  54.     supplier_type int
  55. END-TABLE 
  56.  
  57. TABLE-NAME=programme
  58. SCREEN-TITLE=Programme Codes
  59. SUMMARY-LIST=code, description
  60. FIELDS:
  61.     code char(3) *
  62.     description char(45)
  63.     prog_type int
  64. END-TABLE 
  65.  
  66. TABLE-NAME=scheme
  67. SCREEN-TITLE=Scheme Details
  68. SUMMARY-LIST=scheme_id, title
  69. FIELDS:
  70.     scheme_id char(6) *
  71.     title char(45)
  72.     programme_code char(3) $=code from programme
  73.     costcode char(7)
  74.     status int
  75.     manager char(6) $=ref from user
  76. END-TABLE 
  77.  
  78. TABLE-NAME=invoice
  79. SCREEN-TITLE=Invoice Entry
  80. SUMMARY-LIST=supplier, invoice_number, obj_code, sub_code, total
  81. FIELDS:
  82.     obj_code char(7) * $=costcode from scheme
  83.     sub_code char(7) * $=costcode from subjective
  84.     supplier char(8) * $=ref from supplier
  85.     invoice_number * char(20)
  86.     total float
  87.     invoice_date date
  88.     processed date
  89.     retention float
  90.     vat float
  91. END-TABLE 
  92.  
  93. TABLE-NAME=cashflow
  94. SCREEN-TITLE=Cashflow
  95. SUMMARY-LIST=scheme_id, sub_code, month, year, amount
  96. FIELDS:
  97.     scheme_id char(6) * $=scheme_id from scheme
  98.     month int *
  99.     year int *
  100.     amount float
  101. END-TABLE 
  102.  
  103. TABLE-NAME=approval
  104. SCREEN-TITLE=Approval Entry
  105. SUMMARY-LIST=scheme_id, amend_number
  106. FIELDS:
  107.     scheme_id char(6) * $=scheme_id from scheme
  108.     amend_number int *
  109.     sub_code char(7) * $=code from subjective
  110.     limit float
  111. END-TABLE 
  112.  
  113. TABLE-NAME=user
  114. SCREEN-TITLE=User Maintenance
  115. SUMMARY-LIST=ref, name
  116. FIELDS:
  117.     ref char(6) *
  118.     name char(45)
  119.     password char(8)
  120.     user_type int
  121. END-TABLE
  122.